package exceptionExample;
import java.io.File;
import java.io.IOException;

public class CreateFile {
    public static void main(String[] agrs) throws IOException
    {
        File f = new File("d:\\hello.txt");
        f.createNewFile();
        System.out.println(f+"已创建成功");
    }
}
